const users = require("../../sql/users");
const sql = require('../../sql/mysql');
const staff = require('../../sql/staffs');

module.exports = (req,res)=>{
  sql.remove(staff,{username:req.fields.username}).then(()=>{
    sql.remove(users,{username:req.fields.username}).then(()=>{
      res.send({
        code:0,
        msg:"删除成功"
     })
    })
  })
}